using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Xml;

namespace Sucrose.Base
{
    public class Term
    {
        #region instanceVars

        private int id;
        private String name;
        private DateTime start;
        private DateTime end;

        #endregion

        #region basicProperties

        public int Id
        {
            get 
            { 
                return id; 
            }
            set
            {
                this.id = value;
            }
        }

        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                this.name = value;
            }
        }

        public DateTime Start
        {
            get
            {
                return start;
            }
            set
            {
                this.start = value;
            }
        }
        
        public DateTime End
        {
            get
            {
                return end;
            }
            set
            {
                this.end = value;
            }
        }

        #endregion

        #region constructors
        
        /// <summary>
        /// Creats a new Term object
        /// </summary>
        public Term()
        {
        }

        /// <summary>
        /// Creats a new Term object
        /// </summary>
        /// <param name="id">The Term ID</param>
        /// <param name="name">Display Name</param>
        /// <param name="start">Start of Term</param>
        /// <param name="end">End of Term</param>
        public Term(int id, String name, DateTime start, DateTime end)
        {
            Id = id;
            Name = name;
            Start = start;
            End = end;
        }
        
        #endregion
    }
}
